<?php
    session_start();
	if(!isset($_SESSION['username'])){
		header("Location: thesis_login_register.php");
	}
?>
<?php
$User_ID= trim ($_SESSION['User_ID']);
$Pet_Vet_User_ID = $_GET['Pet_Vet_User_ID'];
?>

<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="This is a sample website using bootstrap">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>Petformance</title>

    <!-- Bootstrap core CSS -->
    <link href="bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
	<link rel="stylesheet" href="bootstrap/font-awesome/css/font-awesome.min.css">
    <!-- Custom styles for this template -->
	 <link href="bootstrap-social.css" rel="stylesheet">

  </head>
  
    <body>
	<br><br><br><br><br>
<div class="container">
      <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xs-offset-0 col-sm-offset-0 col-md-offset-3 col-lg-offset-3 toppad" >
   
							<?php

							require_once("includes/database.php"); 
							$sql="SELECT * FROM user_db
							WHERE User_ID = '{$Pet_Vet_User_ID}'";
							 $result=mysql_query($sql,$con);
							 
							 if (false === $result) {
									echo mysql_error();
								}
								
							 while($row=mysql_fetch_array($result))
							 {

							?>
   
   
          <div class="panel panel-info">
            <div class="panel-heading">
              <h3 class="panel-title">Dr. <?php echo $row['First_Name']; ?> <?php echo $row['Last_Name']; ?></h3>
            </div>
            <div class="panel-body">
              <div class="row">
                <div class="col-md-3 col-lg-3 " align="center"> <img alt="User Pic" src="profile_picture/<?php echo $row['Profile_Picture']; ?>" class="img-responsive img-circle"> </div>
                <div class=" col-md-9 col-lg-9 "> 
                  <table class="table table-user-information">
                    <tbody>
                      <tr>
                        <td>First Name:</td>
                        <td><?php echo $row['First_Name']; ?></td>
                      </tr>
                      <tr>
                        <td>Last Name:</td>
                        <td><?php echo $row['Last_Name']; ?></td>
                      </tr>                 
                         <tr>
                      <tr>
                        <td>Email:</td>
                        <td><a href="mailto:<?php echo $row['Email_Address']; ?>"><?php echo $row['Email_Address']; ?></a></td>
                      </tr>
                        <td>Contact Number:</td>
                        <td><?php echo $row['Contact_Number']; ?>
                        </td>             
                      </tr>
					    <tr>
                        <td>Hired:</td>
                        <td><?php echo $row['Joined']; ?></td>
						   	<?php } ?>
                      </tr>
                     
                    </tbody>
                  </table>
                </div>
              </div>
            </div>
                 <div class="panel-footer">
                       
                    </div>
            
          </div>
        </div>
      </div>
    </div>
		
	
  </body>
</html>